//hello world
const http = require('http')

/*设置监听的端口*/
const port = 3000;

const server = http.createServer((req, res) => {
    res.end('hello world')
})

server.listen(port, () => {
    console.log("listening on:", port)
})